// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_SAVED_PRODUCT_TECHNIC
// * CreateDate    : 2011-10-25 10:44:41
// * Creater       : CodeSmith
// * LastChangeDate: 2011-10-25 10:44:41
// * LastChanger   : 2011-10-25 10:44:41
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class ProdSavedProductTechnicEntity : EntityBase
    {
        public ProdSavedProductTechnicTable TableSchema
        {
            get
            {
                return ProdSavedProductTechnicTable.Current;
            }
		}
		
		public ProdSavedProductTechnicEntity()
        {

        }
		
		public ProdSavedProductTechnicEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ProductTechnicId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_TECHNIC_ID"]));
			this.ProductTechnicCode = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_TECHNIC_CODE"]));
			this.Description = Convert.ToString(CommonFunctions.ToObject(dr["DESCRIPTION"]));
        }
		
		public ProdSavedProductTechnicEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ProductTechnicId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_TECHNIC_ID"]));
			this.ProductTechnicCode = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_TECHNIC_CODE"]));
			this.Description = Convert.ToString(CommonFunctions.ToObject(dr["DESCRIPTION"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ProdSavedProductTechnicTable.Current;
            }
        }
		
		#region Perporty List
        public string ProductTechnicId
        {
            get { return Convert.ToString(GetData(ProdSavedProductTechnicTable.C_PRODUCT_TECHNIC_ID)); }
            set { SetData(ProdSavedProductTechnicTable.C_PRODUCT_TECHNIC_ID, value); }
        }
		
        public string ProductTechnicCode
        {
            get { return Convert.ToString(GetData(ProdSavedProductTechnicTable.C_PRODUCT_TECHNIC_CODE)); }
            set { SetData(ProdSavedProductTechnicTable.C_PRODUCT_TECHNIC_CODE, value); }
        }
		
        public string Description
        {
            get { return Convert.ToString(GetData(ProdSavedProductTechnicTable.C_DESCRIPTION)); }
            set { SetData(ProdSavedProductTechnicTable.C_DESCRIPTION, value); }
        }
		
		#endregion
	}
	
	
}	

